package com.lww.smartbathroom.service;

import com.lww.smartbathroom.model.Equipment;
import com.lww.smartbathroom.model.User;
import com.lww.smartbathroom.param.EquipmentQueryParam;
import com.lww.smartbathroom.param.UserQueryParam;
import org.springframework.data.domain.Page;

/**
 * @author lww
 * @version 1.0.0
 * @ClassName EquipmentService.java
 * @Description TODO
 * @createTime 2021年01月24日 13:11:00
 */
public interface EquipmentService {
    /**
     * 新增
     */
    Equipment add(Equipment equipment);

    /**
     * id 查询
     */
    Equipment get(String id);

    /**
     * 条件查询，支持分页
     */
    Page<Equipment> list(EquipmentQueryParam param);

    /**
     * 修改
     */
    boolean modify(Equipment equipment);

    /**
     * 删除
     */
    boolean delete(String id);

    long count();
}
